<?php
/**
 * Hols class Image_ColorIndex
 *
 * @see Enum
 * @author daantimmer
 *
 * @package Library
 * @subpackage Image
 */

/**
 * Enum with colors
 *
 * @author daantimmer
 */
class Image_ColorIndex extends Enum{
	
	/**
	 * @var Image_ColorIndex
	 */
	private static $instance = null;
	
	public function __construct(){
		parent::__construct(
			"NONE",		//000
			"RED",		//001
			"GREEN",	//002
			"BLUE",		//003
			"PURPLE",	//004
			"ORANGE",	//005
			"PINK",		//006
			"SKIN",		//007
			"WHITE",	//008
			"BROWN",	//009
			"YELLOW",	//010
			"GRAY",		//011
			"BLACK"		//012
		);
	}
	
	/**
	 * @return Image_ColorIndex
	 */
	public static function instance(){
		if(self::$instance == null)
			self::$instance = new Image_ColorIndex();
		return self::$instance;
	}
}